package com.yp.shopping.service;

import com.yp.shopping.bean.Result;
import com.yp.shopping.model.Category;

import java.util.List;


public interface CategoryService {

    Result saveCategory(Category category);

    List<Category> getCategories();

    Category getCategoryById(Integer id);

    Result deleteCategoryById(Integer id);

    Category updateCategory(Category category);

}
